<script setup lang="ts">
// import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
  <router-view />
</template>

<style>
@import 'element-plus/dist/index.css';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调 */
  --primary-color: #00aeff;
  --primary-hover: #33beff;
  --primary-active: #0095db;
  
  /* 背景色 - 深色渐变 */
  --background-dark: #091521;
  --background-darker: #040b14;
  --background-light: #0f1c2b;
  
  /* 文字颜色 */
  --text-color: #ffffff;
  --text-secondary: #7a8b9e;
  
  /* 卡片和边框 */
  --card-bg: rgba(15, 28, 43, 0.85);
  --card-header-bg: rgba(9, 21, 33, 0.95);
  --border-color: rgba(255, 255, 255, 0.06);
  
  /* 按钮和交互元素 */
  --button-hover: rgba(0, 174, 255, 0.1);
  --button-active: rgba(0, 174, 255, 0.2);
  --input-bg: rgba(15, 28, 43, 0.6);
  --input-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
}

#app {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
}

/* 响应式布局基础设置 */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* 响应式断点 */
@media (min-width: 576px) {
  .container {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 100%;
  }
}

/* 响应式工具类 */
.hide-on-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-on-mobile {
    display: block;
  }
  
  .hide-on-desktop {
    display: none;
  }
}

/* 响应式间距 */
.responsive-padding {
  padding: 1rem;
}

@media (min-width: 768px) {
  .responsive-padding {
    padding: 2rem;
  }
}

/* 响应式字体大小 */
.responsive-text {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .responsive-text {
    font-size: 1.1rem;
  }
}

.responsive-heading {
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .responsive-heading {
    font-size: 2rem;
  }
}

.responsive-title {
  font-size: 2rem;
}

@media (min-width: 768px) {
  .responsive-title {
    font-size: 3rem;
  }
}

/* 新增：响应式布局类 */
.responsive-layout {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .responsive-layout {
    padding: 0 30px;
  }
}

@media (min-width: 1200px) {
  .responsive-layout {
    padding: 0 50px;
  }
}

/* 新增：响应式网格系统 */
.responsive-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .responsive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .responsive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .responsive-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 新增：响应式弹性布局 */
.responsive-flex {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .responsive-flex {
    flex-direction: row;
  }
}

/* 新增：响应式列宽 */
.responsive-col {
  width: 100%;
}

@media (min-width: 768px) {
  .responsive-col-1 { width: 8.33%; }
  .responsive-col-2 { width: 16.66%; }
  .responsive-col-3 { width: 25%; }
  .responsive-col-4 { width: 33.33%; }
  .responsive-col-5 { width: 41.66%; }
  .responsive-col-6 { width: 50%; }
  .responsive-col-7 { width: 58.33%; }
  .responsive-col-8 { width: 66.66%; }
  .responsive-col-9 { width: 75%; }
  .responsive-col-10 { width: 83.33%; }
  .responsive-col-11 { width: 91.66%; }
  .responsive-col-12 { width: 100%; }
}
</style>
